package app.gt.screen.profile;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import app.gt.R;
import app.gt.screen.managetrip.ManageTripsScreen;
import app.gt.screen.routerequest.DefineRouteScreen;


public class StartScreen extends Activity implements OnClickListener {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		setContentView(R.layout.profilestartscreen);
		
		Button StartManageTrips = (Button) findViewById(R.id.ManageTrips);
		StartManageTrips.setOnClickListener(this);
		
		Button StartRouteRequest = (Button)findViewById(R.id.CreateTrip);
		Button StartRouteRequest2 = (Button)findViewById(R.id.CreateTrip2);
		StartRouteRequest.setOnClickListener(this);
		StartRouteRequest2.setOnClickListener(this);
	}

	@Override
	public void onClick(View v) {
		switch (v.getId()) {
		case R.id.ManageTrips:
			Intent proposalWindow = new Intent(this,ManageTripsScreen.class);
			startActivity(proposalWindow);
			break;
		case R.id.CreateTrip:
			Intent StartRequest1 = new Intent(this,DefineRouteScreen.class);
			startActivity(StartRequest1);
			break;
			
		case R.id.CreateTrip2:
			Intent StartRequest2 = new Intent(this,DefineRouteScreen.class);
			startActivity(StartRequest2);
			break;
		}// TODO Auto-generated method stub
		
	}
	
	/*
	public void onBackPressed() {
	
finishActivity(0);
		//moveTaskToBack(true);
	  }*/
}
